home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
apps
/
191
/
applic
/
topmap.doc
< prev
next >
Wrap
Text File
|
1987-11-20
|
5KB
|
111 lines
*****************************************************
* Fractal Topographical Maps *
* Copyright (c) 1987 by Robert Adam II *
* All rights reserved. *
*****************************************************
PURPOSE:
This program can be used to create a contoured surface
with features resembling natural geological formations
(lakes, mountains, ...). You may also display the results
in a limited number of ways.
The display looks best in low resolution. High resolution
looks almost as good as low. Medium resolution looks rather
poor.
LANGUAGE:
This program was written entirely in Personal Pascal from OSS.
USE:
This is a GEM based program.
FILE load - load in a saved map file
new - create a new map using the height and width from
from OPTIONS menu
old - load a map saved by version 0.1
save - save the current map to a file and, in the process,
name it
VIEW isometric - a modified isometric view
overhead - a view from directly above which is the
one you normally get when you create a new
map
perspective - a perspective view
OPTIONS remap - causes the display of a map with its altitude
range expanded to encompass the maximum range
(does not change the data; ignored during creation
of new map)
shadow - when drawing a map, produce shadows as though
the sun was to the left of the picture. You will
be given a choice of three angles (Low, Medium,
High). When shadow is off, all the colors used
to produce shadows are used with the normal colors
so that more levels may be displayed (Thanks to
Dan Rhea for the suggestion.)
watch - allows you to watch while a new map is being
produced. ( You may want to hide the map from
yourself if you will be using it in a game that
you will be playing. )
water - if "water" is on you cannot see below the surface
otherwise you see the underwater land contours
height - how many "tiles" high a new map will be
width - how many "tiles" wide a new map will be
reset - reset the colors to the TOPMAP setup (in case a
desk accessory changes back to the default colors
or you have loaded a map created by a version of
TOPMAP previous to 0.3)
MISCELLANEOUS:
You may cancel the display or creation of a map by pressing the
left mouse button and holding it until the alert box appears then
clicking on the YES option. You may not resume a canceled display,
though you may restart it.
The SAVE and LOAD really do take a long time (~1 min. 30 sec. for
SAVE about half that for LOAD), it's not just your imagination.
To map the colors to altitude in a shadowed display, I divided the
altitude range into 9 evenly sized pieces. I assigned three of these
pieces to the water (blue) region, while each of the other colors got
one piece.
To map the colors to altitude in an unshadowed display, I divided the
altitude range into 13 evenly sized pieces. I assigned one piece to each
color.
DATA FILE FORMAT:
The file is a Pascal file of integer (where an integer is a 16 bit word).
word offset value stored
----------------------------------------------------------
0 number of tiles in width
1 number of tiles in height
2-17 colors from xbios(7) call stored 0 to 15
... the data for the map stored in row order
A "tile" is a square that is 65 pixels on a side. The adjacent
tiles overlap by a column (or row), so in a 3 by 2 (width by height)
tile map, the pixel size is 193 by 129 instead of the expected
195 by 130.
The map data should be in the range of 0 to 25000 but it sometimes
strays out of bounds.
The map is stored a row at a time so the first 193 words of data for
a 3 tile wide map will be the first horizontal line of the map.
BUG FIXES:
0.3 - no more horizontal streaks of shadows in perspective and isometric
displays.
FINAL NOTES:
If you have any questions or comments you may reach me at one of
the following addresses:
CompuServe: [74226,623]
U.S. Mail : Robert Adam II
8029-B Trapier Ave.
New Orleans, LA 70127